package com.gupaoedu.task.pattern.stratergy.promotion;



public class PromotionActivityTest {
    //public static void main(String[] args) {
    //    PromotionActivity promotionActivity = null;
    //    String promotionKey = "COUPON";
    //    if (StringUtils.equals(promotionKey, "COUPON")) {
    //        promotionActivity = new PromotionActivity(new CouponStrategy());
    //    } else if (StringUtils.equals(promotionKey, "CASH")) {
    //        promotionActivity = new PromotionActivity(new CashbackStrategy());
    //    }
    //    promotionActivity.execute();
    //}
    public static void main(String[] args) {
        PromotionStrategy promotionStrategy = PromotionStrategyFactory.getPromotionStrategy("COUPON");
        PromotionActivity promotionActivity = new PromotionActivity(promotionStrategy);
        promotionActivity.execute();

    }
}